<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::view('news', 'redio.news');

Route::get('/queue', 'TestController@queue');

Route::get('/', function () {
    //dd(config());
    //return 'hello swoole 666';
    //return view('welcome');
    return 669;
});

Route::get('/swoole', function () {
    return 'hello swoole 666';
    //return view('welcome');
});



/*Route::group(['middleware' => ['web', 'wechat.oauth']], function () {
    Route::get('/user', function () {
        $user = session('wechat.oauth_user.default'); // 拿到授权用户资料

        dd($user);
    });
});*/
